#ifndef HPLCINJECTPROGRAM_H
#define HPLCINJECTPROGRAM_H

#include <QObject>

class HplcInjectProgram : public QObject
{
public:
    HplcInjectProgram(QObject *parent = nullptr);

    void setFlow(double flow);
    double getFlow();

    void setTime(double second);
    double getTime();

    void setTickPeriod(double period);

    bool isStart();
    bool isTimeout();
    void onTick();

    void start();
    void stop();

private:
    double                      m_flow = 1.0; // ml/min
    double                      m_time = 5 * 60; // s

    double                      m_tickPeriod = 0.5; // s
    bool                        m_isStart = false;
    double                      m_tick = 0;
};

#endif // HPLCINJECTPROGRAM_H
